package com.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 规则分类
 * 
 * @author LCX
 *
 */
@Entity
@Table(name = "RULE_CLASS")
public class RuleClass extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4934909727665533063L;

	@Column(name = "CLASS_NAME_", length = 126)
	@PropertyDef(label = "分类名称")
	private String className;

	@Column(name = "DESCRIPTION_", length = 1024)
	@PropertyDef(label = "备注")
	private String description;

	@Column(name = "PARENT_ID_", length = 60)
	@PropertyDef(label = "上级id")
	private String parentId;

	@Transient
	private List<RuleClass> children;

	public List<RuleClass> getChildren() {
		return children;
	}

	public void setChildren(List<RuleClass> children) {
		this.children = children;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

}
